<!-- 付款页 -->
<template>
    <div>
        <van-image width="100" height="100" src="../static/paysuccess.png" />
         <van-cell :title="amount"/>
        <van-cell-group>
            <van-cell>
                <van-col span="21">配送方式</van-col>
                <van-col span="21">快递</van-col>
            </van-cell>
        </van-cell-group>
        <van-button type="primary" size="large" @click="showInfo">查看订单详情</van-button>
    </div>
</template>

<script>
export default {
    name: "Success",
    data() {
        return {
            orderId: null,
            amount: null
        }
    },
    created() {
        this.orderId = this.$route.query.orderId
        this.amount = this.$route.query.amount
    },
    methods: {
        showInfo: function () {
            this.$router.push('/info?orderId='+this.orderId)
        }
    },
}
</script>

<style>

</style>
